package com.lagou.edu.demo.controller;

import com.lagou.edu.demo.service.IDemoService;
import com.lagou.edu.mvcframework.annotations.LgAutowried;
import com.lagou.edu.mvcframework.annotations.LgController;
import com.lagou.edu.mvcframework.annotations.LgRequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description: 功能描述
 * @Author houjh
 * @Email: happyxiaohou@gmail.com
 * @Date: 2021-6-1 21:35
 */
@LgController
@LgRequestMapping("/demo")
public class DemoController {

    @LgAutowried("demoService")
    private IDemoService demoService;

    @LgRequestMapping("/getName")
    public String getName(HttpServletRequest request, HttpServletResponse response,String name){
        return demoService.demoInfo(name);
    }

}
